#include "XgMessagesFactory.h"

xg_init_singleton(XgMessagesFactory);

#include "XgNullMessage.h"

XgMessage* XgMessagesFactory::fromWin32Msg(MSG wmsg)
{
	if( wmsg.message == XM_XGMESSAGE )
	{
		return (XgMessage*)wmsg.wParam;
	}
	return XgNullMessage::Current();
}